<?php

namespace App\Library\Common\Push\ThirdPush;

use App\Remote\HonorPush\HonorPushRemote;
use GuzzleHttp\Exception\GuzzleException;

class HonorPush extends PushBase
{
    /**
     * @param array $regIds
     * @param string $title
     * @param string $desc
     * @param string $path
     * @param array $extra
     * @return bool
     * @throws GuzzleException
     */
    public function multiPush(array $regIds, string $title, string $desc, string $path, array $extra): bool
    {
        // TODO: Implement multiPush() method.
        try {
            HonorPushRemote::tokensMultiPush($regIds, $title, $desc, $path, $extra);
            return true;
        } catch (\Exception $exception) {
            logException("荣耀推送消息失败", $exception, func_get_args(), true, true);
            return false;
        }
    }


}
